import request from '@/utils/request'
import qs from 'qs'

const prefix = '/v1'

export function login(params) {
    return request.post(`${prefix}/login`, qs.stringify(params, {
        method: 'POST',
        headers: {'content-type': 'application/x-www-form-urlencoded'}
    }));
}

export function logout() {
    return request.post(`${prefix}/logout`);
}

export function getInfo() {
    return request.post(`${prefix}/employee/getInfo`);
}